]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Add missing docstrings
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 6 Jul 2026 17:35:44 +0000 (19:35 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 2 Aug 2026 16:49:42 +0000 (18:49 +0200)
For some reason, eslint trips up with non-exported classes with
a static initializer. Add the missing docs that somehow make it
happy.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4248>
(cherry picked from commit 2b9350ed8571c2dab1b5400a3e18d0b8b0b7f1a3)

js/ui/lookingGlass.js

index 7ba30eb959b9eb19fffc1e5238bdb9f7d3a0b922..4695008167237670249baa864abc2842d5a36d4a 100644 (file)
@@ -54,6 +54,7 @@ const CLUTTER_DEBUG_FLAG_CATEGORIES = new Map([
     // ['PickDebugFlag', { argPos: 2, exclude: [] }],
 ]);
 
+/** @returns {string[]} **/
 function _getAutoCompleteGlobalKeywords() {
     const keywords = ['true', 'false', 'null', 'new'];
     // Don't add the private properties of globalThis (i.e., ones starting with '_')
@@ -264,6 +265,7 @@ const Notebook = GObject.registerClass({
     }
 });
 
+/** @param {Any} o **/
 function objectToString(o) {
     if (typeof o === typeof objectToString) {
         // special case this since the default is way, way too verbose